import request from '@/utils/http'

// 查询患者
export const query_patient = (params: any) => {
  return request.get({
    url: '/api/user/list/patient/' + params,
    // data: params
  })
}
// 患者详情
export const query_patient_detail = (params: any) => {
  return request.get({
    url: '/api/user/get/patient/' + params.userId + '/' + params.empi,
    // data: params
  })
}
// 保存就诊人
export const add_patient = (params: any) => {
  return request.post({
    url: '/api/user/add/patient',
    data: params
  })
}
// 删除患者
export const del_patient = (params: any) => {
  return request.get({
    url: '/api/user/del/patient/' + params.userId + '/' + params.empi,
    // data: params
  })
}


